Foxit PDF RDK
|
Public Member Functions | |
onPageChanged (oldPageIndex, curPageIndex) | |
onPageInvisible (index) | |
onPageJumped () | |
onPageMoved (success, index, dstIndex) | |
onPagesInserted (success, dstIndex, pageRanges[]) | |
onPagesRemoved (success, pageIndexes[]) | |
onPagesRotated (success, pageIndexes[], rotation) | |
onPagesWillInsert (dstIndex, pageRanges[]) | |
onPagesWillRemove (pageIndexes[]) | |
onPagesWillRotate (pageIndexes[], rotation) | |
onPageSwiped (oldPageIndex, curPageIndex) | |
onPageVisible (index) | |
onPageWillMove (index, dstIndex) | |
The interface for page event listener.
Note: Currently, this interface does not support xfa documents.
FoxitPDFViewCtrl.IPageEventListener.onPageChanged | ( | oldPageIndex | , |
curPageIndex | |||
) |
Triggered when current page is changed.
oldPageIndex | Old page index. Valid range: from 0 to (count -1). count is the page count. |
curPageIndex | Current page index. Valid range: from 0 to (count -1). count is the page count. |
FoxitPDFViewCtrl.IPageEventListener.onPageInvisible | ( | index | ) |
Triggered when the page becomes invisible.
index | Page index. Valid range: from 0 to (count -1). count is the page count. |
FoxitPDFViewCtrl.IPageEventListener.onPageJumped | ( | ) |
Triggered when function PDFViewCtrlModel.gotoPage(number) or PDFViewCtrlModel.gotoPage(number, number, number) is called.
FoxitPDFViewCtrl.IPageEventListener.onPageMoved | ( | success | , |
index | , | ||
dstIndex | |||
) |
Triggered when function
success | true means success, while false means failure. |
index | The original index of page which has be moved. |
dstIndex | The destination index. |
FoxitPDFViewCtrl.IPageEventListener.onPagesInserted | ( | success | , |
dstIndex | , | ||
pageRanges | [] | ||
) |
Triggered when function
success | true means success, while false means failure. |
dstIndex | A page index in current PDF document. This is used to specify where the imported pages will be inserted. If parameter dstIndex is less than 0, the imported pages will be inserted to the first. If parameter dstIndex is equal to or larger than current page count, the imported pages will be inserted to the end. |
pageRanges | An integer array which contains the page ranges of source PDF document, to be imported. In this array, 2 numbers are a pair: the first integer is the starting page index, and the second integer is the page count. This parameter is not null , it should contains at least 2 numbers, and the count of elements should be a multiples of 2. |
FoxitPDFViewCtrl.IPageEventListener.onPagesRemoved | ( | success | , |
pageIndexes | [] | ||
) |
Triggered when function
success | true means success, while false means failure. |
pageIndexes | An integer array specify which pages have be removed. |
FoxitPDFViewCtrl.IPageEventListener.onPagesRotated | ( | success | , |
pageIndexes | [], | ||
rotation | |||
) |
Triggered when function
success | true means success, while false means failure. |
pageIndexes | An integer array specify which pages have be rotated. |
rotation | The destination rotation value. Please refer to values starting from FoxitRDKNative.e_Rotation0 and this should be one of these values. |
FoxitPDFViewCtrl.IPageEventListener.onPagesWillInsert | ( | dstIndex | , |
pageRanges | [] | ||
) |
Triggered when insert some pages.
dstIndex | A page index in current PDF document. This is used to specify where the imported pages will be inserted. If parameter dstIndex is less than 0, the imported pages will be inserted to the first. If parameter dstIndex is equal to or larger than current page count, the imported pages will be inserted to the end. |
pageRanges | An integer array which contains the page ranges of source PDF document, to be imported. In this array, 2 numbers are a pair: the first integer is the starting page index, and the second integer is the page count. If this parameter is set to null , all pages in the source document will be imported. If this parameter is not null , it should contains at least 2 numbers, and the count of elements should be a multiples of 2. |
FoxitPDFViewCtrl.IPageEventListener.onPagesWillRemove | ( | pageIndexes | [] | ) |
Triggered when pages will be removed.
pageIndexes | An integer array specify which pages will be removed. |
FoxitPDFViewCtrl.IPageEventListener.onPagesWillRotate | ( | pageIndexes | [], |
rotation | |||
) |
Triggered when pages will be rotated.
pageIndexes | An integer array specify which pages will be rotated. |
rotation | New page rotation value. Please refer to values starting from FoxitRDKNative.e_Rotation0 and this should be one of these values. |
FoxitPDFViewCtrl.IPageEventListener.onPageSwiped | ( | oldPageIndex | , |
curPageIndex | |||
) |
Triggered when current page is swiped, and on the continuous page mode this method will never be called.
oldPageIndex | Old page index. Valid range: from 0 to (count -1). count is the page count. |
curPageIndex | Current page index. Valid range: from 0 to (count -1). count is the page count. |
FoxitPDFViewCtrl.IPageEventListener.onPageVisible | ( | index | ) |
Triggered when the page becomes visible.
index | Page index. Valid range: from 0 to (count -1). count is the page count. |
FoxitPDFViewCtrl.IPageEventListener.onPageWillMove | ( | index | , |
dstIndex | |||
) |
Triggered when page will be moved.
index | The index of page which will be moved. |
dstIndex | The destination index. |